<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .wrap {
            display: flex;
            width: 400px;
            height: 400px;
            border: 1px solid;
        }

        .item {
            height: 50px;
            width: 50px;
            background: pink;
            font-size: 13px;
            line-height: 50px;
            text-align: center;
            border: 1px solid;
            box-sizing: border-box;

            flex-shrink: 1;
            /* flex-basis: 0%; */
            /* flex-grow: 1; */
        }
    </style>
</head>

<body>
    <div class="wrap">
        <div class="item">1❤</div>
        <div class="item">2❤</div>
        <div class="item">3❤</div>
        <div class="item">4❤</div>
        <div class="item">5❤</div>
        <div class="item">6❤</div>
        <div class="item">7❤</div>
        <div class="item">8❤</div>
        <div class="item">9❤</div>
        <div class="item">10❤</div>
    </div>
</body>

</html>